package com.ruoyi.project.modules.tableObject.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Set;

/**
 * 对象关系对象 t_table_object
 * 
 * @author smallrain
 * @date 2021-11-06
 */
public class TableObject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 表ID */
    @Excel(name = "表ID")
    private Long tableId;

    /** 关联对象类型（1业务系统 2页面） */
    @Excel(name = "关联对象类型", readConverterExp = "1=业务系统,2=页面")
    private String objectType;

    /** 关联对象ID */
    @Excel(name = "关联对象ID")
    private Long objectId;

    /** 关联对象ID */
    private Set<Long> objectIds;

    private Set<Long> tableIds;

    public Set<Long> getTableIds() {
        return tableIds;
    }

    public void setTableIds(Set<Long> tableIds) {
        this.tableIds = tableIds;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTableId(Long tableId) 
    {
        this.tableId = tableId;
    }

    public Long getTableId() 
    {
        return tableId;
    }
    public void setObjectType(String objectType) 
    {
        this.objectType = objectType;
    }

    public String getObjectType() 
    {
        return objectType;
    }
    public void setObjectId(Long objectId) 
    {
        this.objectId = objectId;
    }

    public Long getObjectId() 
    {
        return objectId;
    }

    public Set<Long> getObjectIds() {
        return objectIds;
    }

    public void setObjectIds(Set<Long> objectIds) {
        this.objectIds = objectIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tableId", getTableId())
            .append("objectType", getObjectType())
            .append("objectId", getObjectId())
            .toString();
    }
}
